package com.lxz.bookmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxz.bookmanager.entity.Reader;
import com.lxz.bookmanager.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {
    //查询用户名
    User getUserByUsername(String username);

    //修改用户密码
    void changePassword(String username, String newPassword);

    //根据用户名获取密码
    String getPassword(String username);
}
